package xcmg.device.dao.mapper.salesReturn;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.salesReturn.SalesReturnApplyDO;
import xcmg.device.service.vo.salesReturn.SalesReturnApplyVO;

import java.util.List;

/**
 * Created by LiChangjiang on 2018/3/6 0006.
 */
@Mapper
public interface ReturnApplyMapper
{
    List<SalesReturnApplyDO> list(SalesReturnApplyVO record);

    /**
     * 退货申请信息详情
     * @param id String
     * @return SalesReturnApplyDO
     */
    SalesReturnApplyDO  item(String id);

    SalesReturnApplyDO  itemByNo(String applyNo);



    int update(SalesReturnApplyDO applyDO);

    int remove(String applyId);

    int insert(SalesReturnApplyDO applyDO);

    Integer checkPendingCount(@Param("orgId")String orgId);
}
